package edu.hwadee.entity;

/**
 * FitgoodsId entity. @author MyEclipse Persistence Tools
 */

public class FitgoodsId implements java.io.Serializable {

	// Fields

	private Integer goodsId;
	private Integer cartypeId;

	// Constructors

	/** default constructor */
	public FitgoodsId() {
	}

	/** full constructor */
	public FitgoodsId(Integer goodsId, Integer cartypeId) {
		this.goodsId = goodsId;
		this.cartypeId = cartypeId;
	}

	// Property accessors

	public Integer getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	public Integer getCartypeId() {
		return this.cartypeId;
	}

	public void setCartypeId(Integer cartypeId) {
		this.cartypeId = cartypeId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof FitgoodsId))
			return false;
		FitgoodsId castOther = (FitgoodsId) other;

		return ((this.getGoodsId() == castOther.getGoodsId()) || (this.getGoodsId() != null
				&& castOther.getGoodsId() != null && this.getGoodsId().equals(castOther.getGoodsId())))
				&& ((this.getCartypeId() == castOther.getCartypeId()) || (this.getCartypeId() != null
						&& castOther.getCartypeId() != null && this.getCartypeId().equals(castOther.getCartypeId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getGoodsId() == null ? 0 : this.getGoodsId().hashCode());
		result = 37 * result + (getCartypeId() == null ? 0 : this.getCartypeId().hashCode());
		return result;
	}

}